<%@include file="/common/CHeader.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<!doctype html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
</head>
<body>
<form class="form-inline definewidth m20" action="addXmlnode" method="post" style="margin-bottom: 10px">
    文档ID：
    <select name="docid" class="form-control">
            <option value="${tOlapXmldoc.docid}">${tOlapXmldoc.docid}</option>
    </select>&nbsp;&nbsp;
    数据列ID：
    <select name="columnid" class="form-control">
        <c:forEach items="${olapColumnList}" var="f">
            <option value="${f.columnid}">${f.columnid}</option>
        </c:forEach>
    </select>&nbsp;&nbsp;
    <input type="submit" class="btn btn-primary"  value="新增"/>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>节点ID</th>
        <th>文档ID</th>
        <th>数据列ID</th>
        <th>操作</th>
    </tr>
    </thead>

    <c:forEach items="${tOlapXmlnodeList}" var="t">
        <tr>
            <td>${t.nodeid}</td>
            <td>${t.docid}</td>
            <td>${t.columnid}</td>
            <td>
                <a href="<%=basePath %>olapxmlnode/findByid?nodeid=${t.nodeid}">编辑</a>&nbsp;&nbsp;<a href="<%=basePath %>olapxmlnode/deleteByPrimaryKey?nodeid=${t.nodeid}&docid=${tOlapXmldoc.docid}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>